package com.antler.smt.portal.mapper;

import com.antler.smt.entity.PeopleInfoEntity;
import org.springframework.stereotype.Repository;

@Repository
public interface PeopleInfoMapper {

    /**
     * 根据会员id更新实体
     *
     * @param peopleInfoEntity
     * @return
     */
    int updatePeopleSelective(PeopleInfoEntity peopleInfoEntity);

    /**
     * 根据会员id获取当前用户实体
     *
     * @param memberId
     * @return
     */
    PeopleInfoEntity selectPeople(Long memberId);

    /**
     * 返回主键id
     *
     * @param peopleInfoEntity
     * @return
     */
    int insertSelective(PeopleInfoEntity peopleInfoEntity);

    /**
     * 用户只能认证一次
     *
     * @param memberId
     * @return
     */
    int getCount(Long memberId);

    /**
     * 查询id
     *
     * @param memberId
     * @return
     */
    Long selectId(Long memberId);
}